/**
 * New node file
 */
var errorCodes = {
	ERR_DATABASE : 2,
	ERR_TOKEN_EXPIRED : 10,
	ERR_MACHINE_ALREADY_EXIST : 11
};

errorCodes.errorEnd = function(errCode, errString, res) {
	"use strict";
	console.error(errString + "[err:" + errCode + "]");
	res.writeHead(200, {
		"error" : errCode
	});
	res.end();
};

module.exports = errorCodes;
